import { createApp } from 'vue'
import App from '@/App.vue'
import '@/styles/index.scss'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import 'virtual:svg-icons-register'
// import  SvgIcon  from '@/components/SvgIcon/index.vue';
// app.component('SvgIcon',SvgIcon);
import globalComponent from '@/components';
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from './router'
import pinia from './store'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
});
//console.log(import.meta.env);

console.log(globalComponent);
app.use(router);
app.use(globalComponent);
app.use(pinia);

app.mount('#app')
